/*
 * @Author: liyaqi liyaqi0126@163.com
 * @Date: 2024-09-19 15:49:07
 * @LastEditors: liyaqi liyaqi0126@163.com
 * @LastEditTime: 2024-09-19 17:13:44
 * @FilePath: \FinancialLeasing-FG-Factory\src\api\systemConfig\deviceCatalog.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

// 设备列表查询
export function listEquimpent(query) {
  return request({
    url: "/factory/config/equipment/list",
    method: "get",
    params: query,
  });
}

// 新增设备
export function addEquimpent(data) {
  return request({
    url: "/factory/config/equipment/add",
    method: "post",
    data: data,
  });
}

// 修改设备
export function updateEquimpent(data) {
  return request({
    url: "/factory/config/equipment/edit",
    method: "put",
    data: data,
  });
}

// 删除设备
export function delEquimpent(id) {
  return request({
    url: "/factory/config/equipment/" + id,
    method: "delete",
  });
}

// 设备分类查询
export function listEquimpentType(query) {
  return request({
    url: "/factory/config/equipmentType/list",
    method: "get",
    params: query,
  });
}

// 新增设备分类
export function addEquimpentType(data) {
  return request({
    url: "/factory/config/equipmentType/add ",
    method: "post",
    data: data,
  });
}

// 删除设备分类
export function delEquimpentType(id) {
  return request({
    url: "/factory/config/equipmentType/" + id,
    method: "delete",
  });
}
